var mySwiper = new Swiper('.swiper-container', {
  autoplay: 2000,
  loop: true,
  // 如果需要分页器
  pagination: '.swiper-pagination',
  paginationClickable: true,
  // 如果需要前进后退按钮
  nextButton: '.swiper-button-next',
  prevButton: '.swiper-button-prev',
  onSlideChangeEnd: function(swiper) {
    if (swiper.activeIndex == 3) {
      $('.iconfont').css({
        color: '#737373'
      })
      $('.swiper-pagination span').css({
        background: '#737373'
      })
    } else {
      $('.iconfont').css({
        color: '#fff'
      })
      $('.swiper-pagination span').css({
        background: '#fff'
      })
    }
  }
})
$('.swiper-container').css({
  width: $(document.body).width() + 'px',
  height: $(document.body).height()
})
